FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
NAMES = " \
        i2c-bus@2801e000/lm751@48 \
        i2c-bus@2801e000/lm751@49 \
        i2c-bus@2801e000/lm751@4a \
        i2c-bus@28024000/lm751@48 \
        i2c-bus@28024000/lm751@49 \
        i2c-bus@28024000/lm751@4a \
        "
ITEMSFMT = "soc/{0}.conf"

ITEMS = "${@compose_list(d, 'ITEMSFMT', 'NAMES')}"

ENVS = "obmc/hwmon/{0}"
SYSTEMD_ENVIRONMENT_FILE:${PN}:append = " ${@compose_list(d, 'ENVS', 'ITEMS')}"
